#!/bin/bash

docker_image_id="modelscope-registry.cn-hangzhou.cr.aliyuncs.com/modelscope-repo/modelscope:ubuntu22.04-cuda12.1.0-py310-torch2.3.1-tf2.16.1-1.21.0"

model_id="iic/speech_fsmn_vad_zh-cn-16k-common-pytorch"

docker run --rm --name nad_server --shm-size=20gb --gpus=all -e MODELSCOPE_CACHE=/modelscope_cache -v /root/yuehu/assets/:/modelscope_cache -p 9000:9000 $docker_image_id modelscope server --model_id=$model_id --revision=v2.0.4